home *** CD-ROM | disk | FTP | other *** search
/ Gigarom 1 / Gigarom Macintosh Archives (Quantum Leap)(CDRM1080320)(1993).iso / FILES / HYP / E-G / GetDANames 1.2.cpt / GetDANames 1.2 / card_2282.txt < prev    next >
Text File  |  1989-02-26  |  1KB  |  54 lines

  1. -- card: 2282 from stack: in.2
  2. -- bmap block id: 3170
  3. -- flags: 0000
  4. -- background id: 2812
  5. -- name: Syntax & examples
  6.  
  7.  
  8. -- part 8 (field)
  9. -- low flags: 81
  10. -- high flags: 0000
  11. -- rect: left=73 top=61 right=80 bottom=144
  12. -- title width / last selected line: 0
  13. -- icon id / first selected line: 0 / 0
  14. -- text alignment: 0
  15. -- font id: 3
  16. -- text size: 12
  17. -- style flags: 0
  18. -- line height: 16
  19. -- part name: Button ID
  20.  
  21.  
  22. -- part 29 (field)
  23. -- low flags: 01
  24. -- high flags: 0000
  25. -- rect: left=20 top=123 right=309 bottom=498
  26. -- title width / last selected line: 0
  27. -- icon id / first selected line: 0 / 0
  28. -- text alignment: 0
  29. -- font id: 21
  30. -- text size: 12
  31. -- style flags: 0
  32. -- line height: 14
  33. -- part name: Syntax & examples
  34.  
  35.  
  36. -- part contents for card part 29
  37. ----- text -----
  38. -- Put the following statement on a line by itself in your scripts
  39. -- This puts your DA names into an item list in the container "namesOfDAs."
  40. GetDANames
  41. -- Some examples of HyperTalk statements which can make use of this item list:
  42. put namesOfDAs into card field <name or number>
  43. set the name of card button <name or number>  to item 3 of namesOfDAs
  44. -- The function below will allow you to repeat some action for each of your DAs:
  45. function numberOfDAs
  46. GetDANames
  47. return the number of items in namesOfDAs
  48. end numberOfDAs
  49. You can then use a loop such as "Repeat with <container> = 1 to numberOfDAs() ..."
  50.  
  51.  
  52.  
  53.  
  54.